﻿@model IEnumerable<Doan.Website.Models.News> 

@foreach (var item in Model)
{    
    <div class="fleft" style="width:50%;font-size:13px;line-height:16px;">
	    <div class="ndiv">
            <a href=@Url.Action("NewsDetail", "Home", new { id = item.NewsId })>
                <img src="../..@item.Image" class="aimg img-circle" align="left" style="margin-right:7px" width="80px" height="80px" alt="">
            </a>
            <a href=@Url.Action("NewsDetail", "Home", new { id = item.NewsId })>
                @if(item.Name.Length<=30) {@item.Name}
                @if(item.Name.Length>30) {@item.Name.Substring(0,30)}....                                
            </a> 
            <br/>
            <font color="#444">
                @if (item.Content.Length <= 180){@Html.Raw(item.Content)}
                @if (item.Content.Length > 180){@Html.Raw(item.Content.Substring(0,180))}....
            </font>
	    </div>
	</div> 
}
